<?php
if($_SESSION["user_name"]==""){
    echo "<script language=javascript>alert('您尚未登录，请登录');location.href='login.php';</script>";
}

?>
